const {
    ccclass,
    property
} = cc._decorator;

import {Gardener} from "./gardener/GameGardener"

@ccclass
export default class MainSceneContainer extends cc.Component {

    @property(cc.Node)
    mainContainer: cc.Node = null;

    onLoad() {

    }

    start() {
        // init logic
        Gardener.init(this.mainContainer, {
            stringResName: 'json/StringResource',
            orientation: cc.macro.ORIENTATION_LANDSCAPE,
            // popupContainerMaskAlpha: .5,
            // navigatorContainerAvailable: false
        });
        Gardener.loadView(GardenerConfig.PrefabScene.P_HOME_SCENE, (scene) => {
            scene && Gardener.openView(cc.instantiate(scene), true);
        });
        this.schedule(() => {
            Gardener.showFloatTip(GardenerConfig.PrefabControl.P_FLOAT_TIP, '测试', 100, 100);


        }, 1)

        cc.log(typeof this.node);
    }
}